package bb.lanxing.model.database;

//import com.orm.SugarRecord;
//import com.orm.dsl.Column;
//import com.orm.dsl.Table;

import org.litepal.LitePal;
import org.litepal.crud.LitePalSupport;

import java.util.List;


public class PoiImage extends LitePalTableBase {
    private double altitude;

    private boolean isUploaded;
    private double latitude;
    private double longitude;
    private String name;
    private String netType;
    private String path;
    private long size;
    private long timestamp;
    private String url;

    private long userId;

    private String workoutUUID;

    public static <T> T findById(Class<T> cls, Long l) {

        String id = String.valueOf(l);
        T find = LitePal.where("id=?", id).findFirst(cls);

//        List find = find(cls, "id=?", new String[]{String.valueOf(l)}, null, null, "1");
//        if (find.isEmpty()) {
//            return null;
//        }

        return find;
    }



    public String getName() {
        return this.name;
    }

    public void setName(String str) {
        this.name = str;
    }

    public String getPath() {
        return this.path;
    }

    public void setPath(String str) {
        this.path = str;
    }

    public long getSize() {
        return this.size;
    }

    public void setSize(long j) {
        this.size = j;
    }

    public long getTimestamp() {
        return this.timestamp;
    }

    public void setTimestamp(long j) {
        this.timestamp = j;
    }

    public double getLongitude() {
        return this.longitude;
    }

    public void setLongitude(double d) {
        this.longitude = d;
    }

    public double getLatitude() {
        return this.latitude;
    }

    public void setLatitude(double d) {
        this.latitude = d;
    }

    public boolean isUploaded() {
        return this.isUploaded;
    }

    public void setUploaded(boolean z) {
        this.isUploaded = z;
    }

    public String getWorkoutUUID() {
        return this.workoutUUID;
    }

    public void setWorkoutUUID(String str) {
        this.workoutUUID = str;
    }

    public String getUrl() {
        return this.url;
    }

    public void setUrl(String str) {
        this.url = str;
    }

    public long getUserId() {
        return this.userId;
    }

    public void setUserId(long j) {
        this.userId = j;
    }

    public String getNetType() {
        return this.netType;
    }

    public void setNetType(String str) {
        this.netType = str;
    }

    public double getAltitude() {
        return this.altitude;
    }

    public void setAltitude(double d) {
        this.altitude = d;
    }
}
